package display;

import java.awt.Color;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;

public class Panel_Help extends JPanel {

public  Panel_Help()
{
	setLayout(null);
	setBorder(new TitledBorder(new LineBorder(Color.black,2),"help"));

	 BuilPanel();
	 
}
	
	
public void BuilPanel()
{
 JLabel tmpLabel;
 JPanel tmpPanel;
 
 
 tmpPanel=new JPanel();
 tmpPanel.setLayout(null);
 tmpPanel.setBorder(new TitledBorder(new LineBorder(Color.black,2),"left stick"));

 
 tmpLabel=new JLabel("w - up");
 tmpLabel.setBounds(10, 15, 100, 20);
 tmpPanel.add(tmpLabel);
 
 tmpLabel=new JLabel("s - down");
 tmpLabel.setBounds(10, 35, 100, 20);
 tmpPanel.add(tmpLabel);
 
 tmpLabel=new JLabel("a - left");
 tmpLabel.setBounds(10, 55, 100, 20);
 tmpPanel.add(tmpLabel);
 
 
 tmpLabel=new JLabel("d - right");
 tmpLabel.setBounds(10, 75, 100, 20);
 tmpPanel.add(tmpLabel);
 
 
 tmpPanel.setBounds(5,20,90,100);
 
 add(tmpPanel);
 


 tmpPanel=new JPanel();
 tmpPanel.setLayout(null);
 tmpPanel.setBorder(new TitledBorder(new LineBorder(Color.black,2),"right stick"));

 
 tmpLabel=new JLabel("up - up");
 tmpLabel.setBounds(10, 15, 100, 20);
 tmpPanel.add(tmpLabel);
 
 tmpLabel=new JLabel("down - down");
 tmpLabel.setBounds(10, 35, 100, 20);
 tmpPanel.add(tmpLabel);
 
 tmpLabel=new JLabel("left - left");
 tmpLabel.setBounds(10, 55, 100, 20);
 tmpPanel.add(tmpLabel);
 
 
 tmpLabel=new JLabel("right - right");
 tmpLabel.setBounds(10, 75, 100, 20);
 tmpPanel.add(tmpLabel);
 
 
 tmpPanel.setBounds(5,120,90,100);
 
 add(tmpPanel);
 

 
 
}
	
}
